﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_WarehouseDepositDetail")] 
    public class LKWarehouseDepositDetail
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id 
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        
        
        private int _depositId;
        /// <summary>
        /// 寄存单id
        /// </summary>
        [Column("DepositId")]
        public int DepositId 
        {
            get
            {
                return _depositId;
            }
            set { _depositId = value; }
        }
        
        
        private string _goodsNo;
        /// <summary>
        /// 商品批号
        /// </summary>
        [Column("GoodsNo")]
        public string GoodsNo 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_goodsNo))
                    _goodsNo=string.Empty;
                return _goodsNo;
            }
            set { _goodsNo = value; }
        }
        
        
        private int _goodsName;
        /// <summary>
        /// 商品id
        /// </summary>
        [Column("GoodsName")]
        public int GoodsName 
        {
            get
            {
                return _goodsName;
            }
            set { _goodsName = value; }
        }
        
        
        private int _goodsSpecId;
        /// <summary>
        /// 规格
        /// </summary>
        [Column("GoodsSpecId")]
        public int GoodsSpecId 
        {
            get
            {
                return _goodsSpecId;
            }
            set { _goodsSpecId = value; }
        }
        
        
        private int _wareHouseId;
        /// <summary>
        /// 仓位
        /// </summary>
        [Column("WareHouseId")]
        public int WareHouseId 
        {
            get
            {
                return _wareHouseId;
            }
            set { _wareHouseId = value; }
        }
        
        
        private decimal _weight;
        /// <summary>
        /// 件重
        /// </summary>
        [Column("Weight")]
        public decimal Weight 
        {
            get
            {
                return _weight;
            }
            set { _weight = value; }
        }
        
        
        private int _number;
        /// <summary>
        /// 件数
        /// </summary>
        [Column("Number")]
        public int Number 
        {
            get
            {
                return _number;
            }
            set { _number = value; }
        }
        
        
        private decimal _tonWeight;
        /// <summary>
        /// 吨重
        /// </summary>
        [Column("TonWeight")]
        public decimal TonWeight 
        {
            get
            {
                return _tonWeight;
            }
            set { _tonWeight = value; }
        }
        
        
        private decimal _area;
        /// <summary>
        /// 面积
        /// </summary>
        [Column("Area")]
        public decimal Area 
        {
            get
            {
                return _area;
            }
            set { _area = value; }
        }
        
        
        private decimal _avNumber;
        /// <summary>
        /// 每板件数
        /// </summary>
        [Column("AvNumber")]
        public decimal AvNumber 
        {
            get
            {
                return _avNumber;
            }
            set { _avNumber = value; }
        }
        
        
        private int _platePosition;
        /// <summary>
        /// 板位
        /// </summary>
        [Column("PlatePosition")]
        public int PlatePosition 
        {
            get
            {
                return _platePosition;
            }
            set { _platePosition = value; }
        }
        
        
        private System.DateTime _productionDate;
        /// <summary>
        /// 生产日期
        /// </summary>
        [Column("ProductionDate")]
        public System.DateTime ProductionDate 
        {
            get
            {
                if (_productionDate == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _productionDate;
            }
            set { _productionDate = value; }
        }
        
        
        private System.DateTime _expirationDate;
        /// <summary>
        /// 保质日期
        /// </summary>
        [Column("ExpirationDate")]
        public System.DateTime ExpirationDate 
        {
            get
            {
                if (_expirationDate == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _expirationDate;
            }
            set { _expirationDate = value; }
        }
        
        
        private string _producingArea;
        /// <summary>
        /// 产地
        /// </summary>
        [Column("ProducingArea")]
        public string ProducingArea 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_producingArea))
                    _producingArea=string.Empty;
                return _producingArea;
            }
            set { _producingArea = value; }
        }
        
        
        private string _remark;
        /// <summary>
        /// 备注
        /// </summary>
        [Column("Remark")]
        public string Remark 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_remark))
                    _remark=string.Empty;
                return _remark;
            }
            set { _remark = value; }
        }
        
        
        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime 
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }
        
        
        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted 
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }
        
        
    }
}

